<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
    
    <head>
        <meta charset="utf-8">
        <title>
            药品管理-添加
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="../css/x-admin.css" media="all">
        <link rel="stylesheet" href="../lib/layui/css/layui.css" media="all">
    </head>
    
    <body>
        <div class="x-body">
            <form class="layui-form">
                <div class="layui-form-item">
                    <!--<div class="layui-inline">
                        <label class="layui-form-label">日期选择</label>
                        <div class="layui-input-block">
                            <input type="text" name="date" id="test1" autocomplete="off" class="layui-input">
                        </div>
                    </div>-->
                    <div class="layui-inline">
                        <label class="layui-form-label">药品编号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="number" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">药品名称</label>
                        <div class="layui-input-inline">
                            <input  type="text" name="number" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">剂型</label>
                        <div class="layui-input-inline">
                            <select name="quiz" >
                                    <option value="">请选择剂型</option>
                                    <option value="你的工号">你的工号</option>
                                    <option value="你最喜欢的老师">你最喜欢的老师</option>
                            </select>
                        </div>
                    </div>

                </div>


                <div class="layui-form-item">


                    <div class="layui-inline">
                        <label class="layui-form-label">药品规格</label>
                        <div class="layui-input-inline">
                            <select name="quiz" >
                                <option value="">请选择规格</option>
                                <option value="你的工号">你的工号</option>
                                <option value="你最喜欢的老师">你最喜欢的老师</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">药品单位</label>
                        <div class="layui-input-inline">
                            <select name="quiz" >
                                <option value="">请选择单位</option>
                                <option value="你的工号">你的工号</option>
                                <option value="你最喜欢的老师">你最喜欢的老师</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">药品类别</label>
                        <div class="layui-input-inline">
                            <select name="quiz" >
                                <option value="">请选择类别</option>
                                <option value="你的工号">你的工号</option>
                                <option value="你最喜欢的老师">你最喜欢的老师</option>
                            </select>
                        </div>
                    </div>

                </div>


                <div class="layui-form-item">
                    <!--<div class="layui-inline">
                        <label class="layui-form-label">日期选择</label>
                        <div class="layui-input-block">
                            <input type="text" name="date" id="test1" autocomplete="off" class="layui-input">
                        </div>
                    </div>-->

                    <div class="layui-inline">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-inline">
                            <select name="quiz" >
                                <option value="">请选择状态</option>
                                <option value="1">正常</option>
                                <option value="0">缺货</option>
                            </select>
                        </div>
                    </div>


                    <div class="layui-inline">
                        <label class="layui-form-label">供应商号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="number" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">进价</label>
                        <div class="layui-input-inline">
                            <input  type="text" name="number" autocomplete="off" class="layui-input">
                        </div>
                    </div>


                </div>



                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">库存量</label>
                        <div class="layui-input-inline">
                            <input type="text" name="number" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">生产日期</label>
                        <div class="layui-input-block">
                            <input style="width: 190px" type="text" name="date" id="test1" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">有效期</label>
                        <div class="layui-input-block">
                            <input style="width: 190px" type="text" name="date" id="test2" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label  class="layui-form-label">
                    </label>
                    <button  class="layui-btn">
                        添加药品
                    </button>
                </div>
            </form>
        </div>
        <script src="../lib/layui/layui.js" charset="utf-8">
        </script>
        <script src="..//js/x-layui.js" charset="utf-8">
        </script>
        <script>

            layui.use('form', function(){
                var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

                //……

                //但是，如果你的HTML是动态生成的，自动渲染就会失效
                //因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
                form.render();
            });
            layui.use('laydate', function(){
                var laydate = layui.laydate;

                //执行一个laydate实例
                laydate.render({
                    elem: '#test1' //指定元素
                });
                laydate.render({
                    elem: '#test2' //指定元素
                });
            });
        </script>
    </body>

</html>